]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
barLevel: Remove redundant cairo fill calls
authorKhalid Abu Shawarib <kas@gnome.org>
Wed, 30 Jul 2025 16:30:52 +0000 (19:30 +0300)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 1 Aug 2025 14:29:47 +0000 (16:29 +0200)
Drop the redundant fillPreserve() calls where there already is a fill().
This is also caused by 6fd0aac86.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3817>
(cherry picked from commit 4d53fbf5bbf84fee0a5a6d0b8baf098559eaccc9)

js/ui/barLevel.js

index 777cdefe71b0ce61fba7c5067ad30c27a19667f4..a110c719921103913852c3bcece5a4d4ec3043f0 100644 (file)
@@ -156,7 +156,6 @@ export const BarLevel = GObject.registerClass({
         cr.lineTo(endX, (height - this._barLevelHeight) / 2);
         cr.lineTo(xcArcEnd, (height - this._barLevelHeight) / 2);
         cr.setSourceColor(this._barLevelColor);
-        cr.fillPreserve();
         cr.fill();
 
         /* normal progress bar */
@@ -173,7 +172,6 @@ export const BarLevel = GObject.registerClass({
         cr.lineTo(xcArcStart, (height + this._barLevelHeight) / 2);
         if (this._value > 0)
             cr.setSourceColor(this._barLevelActiveColor);
-        cr.fillPreserve();
         cr.fill();
 
         /* overdrive progress barLevel */
@@ -188,7 +186,6 @@ export const BarLevel = GObject.registerClass({
             cr.lineTo(x, (height + this._barLevelHeight) / 2);
             cr.lineTo(x, (height - this._barLevelHeight) / 2);
             cr.setSourceColor(this._barLevelOverdriveColor);
-            cr.fillPreserve();
             cr.fill();
         }